package com.github.wendao76.skill.exception;

/** 异常枚举 */
public enum ResponseEnum implements BusinessExceptionAssert {
  /** 错误信息1 */
  ERROR_01(10000, "测试错误1"),
  /** 错误信息2 */
  ERROR_02(10001, "测试错误2");
  private final int code;
  private final String msg;

  ResponseEnum(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  @Override
  public Integer getCode() {
    return this.code;
  }

  @Override
  public String getMessage() {
    return this.msg;
  }
}
